<?php
class Product extends ActiveRecord\Model{
	
	static $has_many = array(
     array('attribute_group','class_name'=>'attribute_group','conditions'=>array('status = ? ', 1)),
     array('attribute_group_admin','class_name'=>'attribute_group')
   );
      static $belongs_to = array(
   array('cat', 'class_name'=>'cat')
   
   );
}